import { Connector } from "cax-connector"

export function mouseUp(connector: Connector, ev: MouseEvent) {
    const isRight = ev.button === 2
    if (isRight) {
        connector.client.emit("RightButtonRelease", {
            x: ev.offsetX,
            y: ev.offsetY,
        })
    } else {
        connector.client.emit("LeftButtonRelease", {
            x: ev.offsetX,
            y: ev.offsetY,
        })
    }
}
